<template>
    <div class="classfiy">
        <p class="p1">登录</p>
       <span  @click='goIndex'><a   href="#">&lt;</a></span>

    </div>
</template>

<script>
export default {
  methods: {
    goIndex() {
    //   alert(1);
    //   this.$router.push({name:'shoppingcart'});
      this.$router.go(-2);

    }
  }
};
</script>

<style lang='scss' scoped>
$appwidth: 375;

@function pxtovw($p) {
  @return (100 / $appwidth * $p) * 1vw;
}
.classfiy {
  width: 100%;
  position: fixed;
  height: pxtovw(40);
  line-height: pxtovw(40);
  background: #eee;
  .p1 {
    height: pxtovw(40);
    line-height: pxtovw(40);
    text-align: center;
    font-size: pxtovw(16);
    color: rgb(92, 91, 92);
  }
  span {
    display: inline-block;
    position: absolute;
    left: pxtovw(10);
    top: pxtovw(0);
    font-size: pxtovw(18);
    z-index: 10;
    a {
      z-index: 10;
      text-decoration: none;
    }
  }
}
</style>
